using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Runtime.Serialization;

namespace DIS_DAO.DTO
{
	/// <summary>
	/// Data transfer object which is associated with Role table in database
	/// </summary>
	public class RoleDTO
	{
		public int ID { get; set; }
		public string Name { get; set; }

		public static RoleDTO Translate(DataRow row)
		{
			var dto = new RoleDTO
			{
				ID = int.Parse(row["ID"].ToString()),
				Name = row["Name"].ToString(),
			};
			return dto;
		}
	}
}